package singleton;

/**
 * @author huangliusong
 * @since 2018/10/22
 * {@link }
 */
public abstract class LoggingRunnable implements Runnable {
    protected abstract void doRun();
    @Override
    public void run() {
        long startTime=System.currentTimeMillis();
        System.out.println("+start_task "+startTime);
        doRun();
        System.out.println("+finished "+(System.currentTimeMillis()-startTime));

    }
}
